﻿@model IEnumerable<TeamCityMonitor.Models.CacheStatistics>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Admin/Layout.cshtml";
}

<h2 class="center">Cahce Statistics</h2>

<table>
    <tr>
        <th>
            Name
        </th>
        <th>
            Mean Execution Time
        </th>
        <th>
            Maximum Execution Time
        </th>
        <th>
            Maximum ExecutionTime Date
        </th>
        <th>
            Minimum Execution Time
        </th>
        <th>
            Minimum ExecutionTime Date
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MeanExecutionTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MaximumExecutionTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MaximumExecutionTimeDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MinimumExecutionTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MinimumExecutionTimeDate)
        </td>
    </tr>
}

</table>
